package io.renren.common.utils;

public enum ItemStrEnum {

	ZUJIN("租金", "zujin"), GUANLI("管理费", "guanli"), WUYE("物业费", "wuye"), NENGHAO("公共能耗费", "nenghao"), BAOZHENG("保证金",
			"baozheng"), QITA("其他", "qita"), FANZU("返租租金", "fanzu");
	private String name;
	private String value;

	ItemStrEnum(String name, String value) {
		this.name = name;
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public static ItemStrEnum getItem(String value) {
		for (ItemStrEnum examType : ItemStrEnum.values()) {
			if (value.equals(examType.getName())) {
				return examType;
			}
		}
		return null;
	}
}
